package com.bestcem.xm.survey.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum SurveyErrorCodeEnum {
    ALREADY_ANSWERED("1000", "您已经回答过该问卷"),
    INVALID_SEQ("1001", "无效的seq"),
    PROJECT_VERSION_NOT_MATCH_ERROR("1002", "问卷更新，请重新答题"),
    SURVEY_NOT_RELEASED("1003", "问卷未发布"),
    SURVEY_FINISHED("1004", "问卷已结束"),
    SURVEY_DELETED("1005", "问卷已删除"),
    GROUP_DELETED("1006", "门店(包括其他层级节点)已删除"),
    SURVEY_NOT_BEGIN("1007", "问卷已发布但未开始"),
    IP_CHECK_ERROR("1008", "您所在的IP已经参与过该调查"),
    SURVEY_RESTART("1009", "答卷开始时间记录已过期，请重新开始"),
    DUPLICATE_ANSWER("1110", "重复答案(前端：手机唯一性校验)"),
    DUPLICATE__ANS("1111", "超过指定次数"),
    EXCEED_ANS_TIME("1112", "超出答题时限"),
    REPEAT_RECOVERY("1113 ", "重复请求恢复答案"),
    NAME_LIST_CHECK_FAIL("1116", "黑白名单校验失败, 您不在答题范围，请重新填写或联系问卷管理员"),
    LINK_DISABLE("1201", "链接已失效"),
    LINK_DELETED("1202", "链接已删除"),
    EXT_PARAMS_UNIQUE_CHECK_FAIL("1203", "外部参数唯一性校验失败"),
    WX_DUPLICATE_ANS("1204", "微信超过指定次数"),
    DELIVER_PAUSE("1205", "微信公众号暂停投放"),
    PARSER_NOT_FOUND("3000", "cannot find parser");

    @EnumValue
    private final String value;
    private final String name;
}
